package com.ruoyi.platform.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum DeviceStatusEnum implements BaseEnum<Long>{

    FIRST_GROUNDING(1L,"设备在线"),

    SECOND_GROUNDING(2L,"设备离线");

    DeviceStatusEnum(Long code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @EnumValue
    private Long code;

    private String desc;

    @Override
    public Long getCode() {
        return this.code;
    }

    @Override
    public String desc() {
        return this.desc;
    }

    @Override
    public Long getValue() {
        return this.code;
    }

    @Override
    public String toString() {
        return getCode().toString();
    }

}
